<template>
    <div>
      {{count}}
      <button @click="increment">increment</button>
    </div>
</template>

<script lang='ts'>
import {defineComponent, ref, reactive, toRefs, computed} from 'vue'
import {useCount} from "../hook/useCount"
export default defineComponent({
  setup(){
    let {count,increment} = useCount();
    return{
      count,
      increment
    
    }
  },
});
</script>

<style scoped >

</style>
